-- GENERATED SPELL FOR [Wastewalker Worker] --


function spell0_17964(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13738,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17964', 15000, 1)
end

function spell1_17964(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(37662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17964', 15000, 1)
end

function Sorts_17964(pUnit, Event)
local choix_sorts_17964 = math.random(0, 1)
if choix_sorts_17964 == 0 then
pUnit:RegisterEvent('spell0_17964', 1, 1)
end
if choix_sorts_17964 == 1 then
pUnit:RegisterEvent('spell1_17964', 1, 1)
end
end

function mob17964_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17964', math.random(1500, 3000), 1)
end

function mob17964_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17964_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17964_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17964, 1, 'mob17964_Action')
RegisterUnitEvent(17964, 2, 'mob17964_Leave')
RegisterUnitEvent(17964, 3, 'mob17964_Kill')
RegisterUnitEvent(17964, 4, 'mob17964_Die')
